'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/upLoad',controller.upLoad.index)
  router.get('/getImg',controller.upLoad.getImg)
  router.post('/login',controller.login.index.index)
  router.resources('users', '/users',controller.user);
  require('./router/system.js')(app);
  require('./router/article.js')(app);
};
